@if $contrast == 'high' {
background: transparentize(if($variant == 'light', black, white), .7);
+
+ &:hover {
+ background: transparentize(if($variant == 'light', black, white), .6);
+ }
} @else {
background: transparentize(if($variant == 'light', black, white), .85);
+
+ &:hover {
+ background: transparentize(if($variant == 'light', black, white), .8);
+ }
}
StIcon {
background: $selected_bg_color;
color: $selected_fg_color;
+ &:hover {
+ background-color: lighten($selected_bg_color, 5%);
+ color: lighten($selected_fg_color, 5%);
+ }
+
.handle {
background: white;
}
super._init({
style_class: 'toggle-switch',
accessible_role: Atk.Role.CHECK_BOX,
+ track_hover: true,
});
const box = new St.BoxLayout({